<?php
define('PROD_DOMAIN', "livedomain.com");

define('LIVE', preg_match("#^(www\.)?(".str_replace('.', "\\.", PROD_DOMAIN).")$#i", $_SERVER['HTTP_HOST']));
define('PROD', LIVE);
define('DEV', !LIVE);

ini_set('display_errors', DEV);
error_reporting(E_ALL);

require_once 'application/autoload.php';
require_once 'application/config.php';




//Config::parseAll();





// Parse URL
    // Fetch LANG
    // Routing





// Controller Instantiate

// Controller Execute

// Controller Buffer View

// Controller Output Layout, insert Buffered View


///////////////////////
/* TODO 
 * 
 * Config system
 * Routing system
 * Controller logic
 * Layout logic
 * MySQL Wrapper
 * Translation system
 * 
 * 
 */
